package com.mergeades.chp03;

public class VolatileFeaturesExample {

    volatile long v = 0L;

    public void set(long val) {
        v = val;
    }

    public void getAndIncrement() {
        v++;
    }

    public long get() {
        return v;
    }
}
